﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="EventArgs.cs" company="">
//   
// </copyright>
// <summary>
//   The event args.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace TinyRadio.UserInterface.Infrastructure
{
    using System;

    /// <summary>The event args.</summary>
    /// <typeparam name="T"></typeparam>
    public class EventArgs<T> : EventArgs
    {
        #region Fields

        /// <summary>The _p event data.</summary>
        private readonly T _pEventData;

        #endregion

        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="EventArgs{T}"/> class.</summary>
        /// <param name="data">The data.</param>
        public EventArgs(T data)
        {
            this._pEventData = data;
        }

        #endregion

        #region Public Properties

        /// <summary>Gets the data.</summary>
        public T Data
        {
            get
            {
                return this._pEventData;
            }
        }

        #endregion
    }
}